using System.IO;

namespace Cirrostrata.Abstractions.IO
{
    // For backward compatibility with v1.0
    public static class FileSystemExtensions
    {
        public static void SaveText(this IFileSystem fs, string path, TextReader source)
        {
            fs.SaveText(path, source, false);
        }

        public static void SaveBinary(this IFileSystem fs, string path, BinaryReader source)
        {
            fs.SaveBinary(path, source, false);
        }

        public static void SaveStream(this IFileSystem fs, string path, Stream source)
        {
            fs.SaveStream(path, source, false);
        }
    }
}